package com.example.warehouseplus.service.impl;

import com.example.warehouseplus.dao.UserRepository;
import com.example.warehouseplus.entity.User;
import com.example.warehouseplus.security.Role;
import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Mono;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

@Service
public class UserService {

    @Autowired
	UserRepository userRepository;
	public Mono<User> findByUsername(String username) {
		return userRepository.findByUsername(username);
	}
}
